package com.jeespring.account.dao;

import com.jeespring.entity.Account;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * @Title: AccountDao
 * @Description:
 * @Author 张朝阳
 * @Date 2020/11/29 15:48
 */
public interface AccountDao extends Mapper<Account> {
    /**
     * 减少账户余额
     * @param userId
     * @param amount
     * @return
     */
    int decrAccount(@Param("userId") String userId, @Param("amount") Double amount);
}
